﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.Core
{
    public static class AccessKeys
    {
        private static Dictionary<string, char> accessKeys = new Dictionary<string, char>(StringComparer.InvariantCultureIgnoreCase) 
        { 
            {"Edit", 'e' },
            {"Preview", 'r'},
            {"QuickSearch", 'f'},
            {"Search", '4'},
            {"NewIssue", '7'}
        };

        public static char? KeyFor(string action)
        {
            if (accessKeys.ContainsKey(action))
                return accessKeys[action];
            else
                return null;
        }
    }
}
